Optimal. Leaf size=332 \[ \frac {(d+e x)^{1+n}}{c^2 e (1+n)}+\frac {a (a e+c d x) (d+e x)^{1+n}}{2 c^2 \left (c d^2+a e^2\right ) \left (a+c x^2\right )}+\frac {\left (3 \sqrt {-a} c d^2+a \sqrt {c} d e n+\sqrt {-a} a e^2 (3+n)\right ) (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{4 c^2 \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (1+n)}-\frac {\left (3 \sqrt {-a} c d^2-a \sqrt {c} d e n+\sqrt {-a} a e^2 (3+n)\right ) (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{4 c^2 \left (\sqrt {c} d+\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (1+n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.31, antiderivative size = 332, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {1663, 1643, 70}
\begin {gather*} \frac {(d+e x)^{n+1} \left (3 \sqrt {-a} c d^2+a \sqrt {c} d e n+\sqrt {-a} a e^2 (n+3)\right ) \, _2F_1\left (1,n+1;n+2;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{4 c^2 (n+1) \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (a e^2+c d^2\right )}-\frac {(d+e x)^{n+1} \left (3 \sqrt {-a} c d^2-a \sqrt {c} d e n+\sqrt {-a} a e^2 (n+3)\right ) \, _2F_1\left (1,n+1;n+2;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{4 c^2 (n+1) \left (\sqrt {-a} e+\sqrt {c} d\right ) \left (a e^2+c d^2\right )}+\frac {a (d+e x)^{n+1} (a e+c d x)}{2 c^2 \left (a+c x^2\right ) \left (a e^2+c d^2\right )}+\frac {(d+e x)^{n+1}}{c^2 e (n+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 70
Rule 1643
Rule 1663
Rubi steps
\begin {align*} \int \frac {x^4 (d+e x)^n}{\left (a+c x^2\right )^2} \, dx &=\frac {a (a e+c d x) (d+e x)^{1+n}}{2 c^2 \left (c d^2+a e^2\right ) \left (a+c x^2\right )}-\frac {\int \frac {(d+e x)^n \left (\frac {a^2 \left (c d^2+a e^2 (1+n)\right )}{c^2}+\frac {a^2 d e n x}{c}-2 a \left (d^2+\frac {a e^2}{c}\right ) x^2\right )}{a+c x^2} \, dx}{2 a \left (c d^2+a e^2\right )}\\ &=\frac {a (a e+c d x) (d+e x)^{1+n}}{2 c^2 \left (c d^2+a e^2\right ) \left (a+c x^2\right )}-\frac {\int \left (-\frac {2 a \left (c d^2+a e^2\right ) (d+e x)^n}{c^2}+\frac {\left (-\frac {a^3 d e n}{c^{3/2}}+\sqrt {-a} \left (\frac {3 a^2 d^2}{c}+\frac {3 a^3 e^2}{c^2}+\frac {a^3 e^2 n}{c^2}\right )\right ) (d+e x)^n}{2 a \left (\sqrt {-a}-\sqrt {c} x\right )}+\frac {\left (\frac {a^3 d e n}{c^{3/2}}+\sqrt {-a} \left (\frac {3 a^2 d^2}{c}+\frac {3 a^3 e^2}{c^2}+\frac {a^3 e^2 n}{c^2}\right )\right ) (d+e x)^n}{2 a \left (\sqrt {-a}+\sqrt {c} x\right )}\right ) \, dx}{2 a \left (c d^2+a e^2\right )}\\ &=\frac {(d+e x)^{1+n}}{c^2 e (1+n)}+\frac {a (a e+c d x) (d+e x)^{1+n}}{2 c^2 \left (c d^2+a e^2\right ) \left (a+c x^2\right )}-\frac {\left (3 \sqrt {-a} c d^2-a \sqrt {c} d e n+\sqrt {-a} a e^2 (3+n)\right ) \int \frac {(d+e x)^n}{\sqrt {-a}-\sqrt {c} x} \, dx}{4 c^2 \left (c d^2+a e^2\right )}-\frac {\left (3 \sqrt {-a} c d^2+a \sqrt {c} d e n+\sqrt {-a} a e^2 (3+n)\right ) \int \frac {(d+e x)^n}{\sqrt {-a}+\sqrt {c} x} \, dx}{4 c^2 \left (c d^2+a e^2\right )}\\ &=\frac {(d+e x)^{1+n}}{c^2 e (1+n)}+\frac {a (a e+c d x) (d+e x)^{1+n}}{2 c^2 \left (c d^2+a e^2\right ) \left (a+c x^2\right )}+\frac {\left (3 \sqrt {-a} c d^2+a \sqrt {c} d e n+\sqrt {-a} a e^2 (3+n)\right ) (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{4 c^2 \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (1+n)}-\frac {\left (3 \sqrt {-a} c d^2-a \sqrt {c} d e n+\sqrt {-a} a e^2 (3+n)\right ) (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{4 c^2 \left (\sqrt {c} d+\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (1+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.67, size = 413, normalized size = 1.24 \begin {gather*} \frac {(d+e x)^{1+n} \left (\frac {4}{e+e n}+\frac {2 a (a e+c d x)}{\left (c d^2+a e^2\right ) \left (a+c x^2\right )}+\frac {4 \sqrt {-a} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{\left (\sqrt {c} d-\sqrt {-a} e\right ) (1+n)}-\frac {4 \sqrt {-a} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{\left (\sqrt {c} d+\sqrt {-a} e\right ) (1+n)}+\frac {a \left (\frac {\left (c d^2-a e^2 (-1+n)+\sqrt {-a} \sqrt {c} d e n\right ) \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{\sqrt {c} d-\sqrt {-a} e}-\frac {\left (c d^2-a e^2 (-1+n)-\sqrt {-a} \sqrt {c} d e n\right ) \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{\sqrt {c} d+\sqrt {-a} e}\right )}{\sqrt {-a} \left (c d^2+a e^2\right ) (1+n)}\right )}{4 c^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int \frac {x^{4} \left (e x +d \right )^{n}}{\left (c \,x^{2}+a \right )^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x^4\,{\left (d+e\,x\right )}^n}{{\left (c\,x^2+a\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________